package cn.txzhang.bookstores;

import cn.stylefeng.roses.kernel.db.starter.GunsDataSourceAutoConfiguration;
import cn.stylefeng.roses.kernel.db.starter.GunsMyBatisPlusAutoConfiguration;
import cn.stylefeng.roses.kernel.system.api.MenuServiceApi;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;

/**
 * SpringBoot方式启动类
 *
 * @author fengshuonan
 * @date 2020/12/1 17:50
 */
@Slf4j
@SpringBootApplication(scanBasePackages = {"cn.txzhang", "cn.stylefeng"},
        exclude = {FlywayAutoConfiguration.class, GunsDataSourceAutoConfiguration.class,
                GunsMyBatisPlusAutoConfiguration.class})
@MapperScan(value = {"cn.txzhang.bookstores.modular.business.mapper", "cn.stylefeng"}, annotationClass = Mapper.class)
public class GunsApplication {

    public static void main(String[] args) {
        SpringApplication.run(GunsApplication.class, args);
        log.info(GunsApplication.class.getSimpleName() + " is success!");
    }

}

